package ModelLayer;


/**
 * Write a description of class Copy here.
 * 
 * @author (Gruppe C) 
 * @version (a version number or a date)
 */
public class Copy
{
    // instance variables - replace the example below with your own
    private int serialNo;
    private String acquiringDate;
    private double acquiringPrice;
    private DVD myDVD;
    private boolean availableCopy;

    /**
     * Constructor for objects of class Copy
     */
    public Copy(int serialNo, String acquiringDate, double acquiringPrice, DVD myDVD)
    {
        // initialise instance variables
        this.serialNo = serialNo;
        this.acquiringDate = acquiringDate;
        this.acquiringPrice = acquiringPrice;
        this.myDVD = myDVD;
        availableCopy = true;
    }

    /**
     * Get the serialnumber of this copy
     */
    public int getSerialNo()
    {
        return serialNo;
    }
    /**
     * Set a new serialnumber
     */
    public void setSerialNo(int s)
    {
        s = serialNo;
    }


    /**
     * Show the date of acquirement
     */
    public String getAcquiringDate()
    {
        return acquiringDate;
    }
    /**
     * Set a new date of acquirement
     */
    public void setAcquiringDate(String acquire)
    {
        acquire = acquiringDate;
    }

    /**
     * Show original purchase price
     */
    public double getAcquiringPrice()
    {
        return acquiringPrice;
    }
    /**
     * Set a new purchase price
     */
    public void setAcquiringPrice(double price)
    {
        price = acquiringPrice;
    }

    /**
     * Show which DVD this copy is of.
     */
    public DVD showDVD()
    {
        return myDVD;
    }


    /**
     * Show avaliabillity of this copy
     */
    public boolean getAvailableCopy()
    {
        return availableCopy;
    }
    /**
     * Change the avaliabillity of this copy
     */
    public void setAvailableCopy(boolean av)
    {
        av = availableCopy;
    }
    
}
